//----------------------------------Include------------------------------------
#define  APP_GLOBALS
#include "glbvar.h"
//-----------------------------------------------------------------------------

//---------------------------------Global Var----------------------------------
uint64_t     igu64_tick_ms;
uint32_t     igu32_bufflag;

float        igaf_adc_u[GM_SAMP_LEN];   //sample result
float        igaf_adc_i[GM_SAMP_LEN];
float        igaf_fft_u[GM_FFT_NUM*2];  //fft result
float        igaf_fft_i[GM_FFT_NUM*2];

//float         gaf_amp_u[GM_FFT_NUM/2];   //all of amplitude
//float         gaf_amp_i[GM_FFT_NUM/2];
double        gaf_pt_amp_u[GM_NEED_PT];  //need point amplitude
double        gaf_pt_amp_i[GM_NEED_PT];

double        gf_rms_u;
double        gf_rms_i;
double        gf_pwr_p;
double        gf_pwr_q;
double        gf_pwr_s;
double        gf_factor;
double        gf_thd;

double        gf_coeff_u = 234.856/0.085426;   //V
double        gf_coeff_i = 425.1/0.01154888;   //mA
uint32_t      gu32_turns = 1;
//-----------------------------------------------------------------------------

//---------------------------------Public Func---------------------------------
//------------------------------------EOF--------------------------------------

